<template>
  <div>
    <v-card title="仪表盘-文字">
      <vcu-chart-gauge :data="chartData" :settings="chartSettings" />
    </v-card>
  </div>
</template>

<script>
export default {
  data() {
    return {
      chartData: {
        measures: [
          {
            name: "业务指标",
            data: [
              {
                name: "完成率",
                value: (Math.random() * 100).toFixed(2) - 0,
              },
            ],
          },
        ],
      },
      chartSettings: {
        axisLabel: {
          formatter: (e) => {
            switch (e + "") {
              case "20":
                return "低";
              case "50":
                return "中";
              case "80":
                return "高";
            }
          },
        },
      },
    };
  },
  methods: {},
  created() {},
};
</script>
<style lang="less" scoped>
</style>
